.class public Lcom/estrongs/android/taskmanager/b/j;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/estrongs/android/taskmanager/b/j;


# instance fields
.field private b:Landroid/content/pm/PackageManager;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/estrongs/android/taskmanager/b/j;->a:Lcom/estrongs/android/taskmanager/b/j;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/j;->b:Landroid/content/pm/PackageManager;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/estrongs/android/taskmanager/b/j;
    .locals 1

    sget-object v0, Lcom/estrongs/android/taskmanager/b/j;->a:Lcom/estrongs/android/taskmanager/b/j;

    if-nez v0, :cond_0

    new-instance v0, Lcom/estrongs/android/taskmanager/b/j;

    invoke-direct {v0, p0}, Lcom/estrongs/android/taskmanager/b/j;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/estrongs/android/taskmanager/b/j;->a:Lcom/estrongs/android/taskmanager/b/j;

    :cond_0
    sget-object v0, Lcom/estrongs/android/taskmanager/b/j;->a:Lcom/estrongs/android/taskmanager/b/j;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Landroid/content/pm/ApplicationInfo;
    .locals 2

    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/j;->b:Landroid/content/pm/PackageManager;

    const/16 v1, 0x2000

    invoke-virtual {v0, p1, v1}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    :goto_1
    const/4 v0, 0x0

    goto :goto_0

    :catch_1
    move-exception v0

    goto :goto_1
.end method
